home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
Puzzle
/
Cubox.swf
/
scripts
/
DefineButton2_165
/
BUTTONCONDACTION on(release).as
Wrap
Text File
|
2004-06-30
|
8KB
|
304 lines
on(release){
number = "1";
if(eval("blix" add (number + "2")) == slider)
{
if(eval("blix" add (number + "1")) == "0" and eval("blix" add number) == "0")
{
play();
tellTarget("slider/TILE" add (number + "2"))
{
gotoAndStop("left1");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add number,slider);
}
}
if(eval("blix" add (number + "1")) == wheel)
{
if(eval("blix" add number) == "0")
{
spin = "1";
play();
tellTarget("wheel/TILE" add (number + "1") add "/wheel")
{
play();
}
tellTarget("wheel/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("w" add number,eval("w" add (number + "1")));
set("w" add (number + "1"),"0");
set("blix" add (number + "1"),"0");
set("blix" add number,wheel);
if(eval("w" add number) == "5")
{
set("w" add number,"1");
}
else
{
set("w" add number,eval("w" add number) + "1");
}
}
}
if(eval("blix" add (number + "1")) == ghost)
{
if("5" >= eval("blix" add number))
{
play();
tellTarget("ghost/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "1"),"0");
set("blix" add number,ghost);
}
}
if(eval("blix" add (number + "1")) == slider)
{
if(eval("blix" add number) == "0")
{
play();
tellTarget("slider/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "1"),"0");
set("blix" add number,slider);
}
}
if(eval("blix" add (number + "1")) == bumper)
{
if(eval("blix" add number) == "0")
{
play();
tellTarget("bumper/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("bump" add number,eval("bump" add (number + "1")) - "1");
set("bump" add (number + "1"),"0");
set("blix" add (number + "1"),"0");
set("blix" add number,bumper);
}
}
if(eval("blix" add (number + "1")) == yellow)
{
if(eval("blix" add number) == "0")
{
play();
tellTarget("yellow/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "1"),"0");
set("blix" add number,yellow);
}
}
if(eval("blix" add (number + "1")) == red)
{
if(eval("blix" add number) == "0")
{
play();
tellTarget("red/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "1"),"0");
set("blix" add number,red);
}
}
if(eval("blix" add (number + "1")) == blue)
{
if(eval("blix" add number) == "0")
{
play();
tellTarget("blue/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "1"),"0");
set("blix" add number,blue);
}
}
if(eval("blix" add (number + "1")) == green)
{
if(eval("blix" add number) == "0")
{
play();
tellTarget("green/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "1"),"0");
set("blix" add number,green);
}
}
if(eval("blix" add (number + "1")) == purple)
{
if(eval("blix" add number) == "0")
{
play();
tellTarget("purple/TILE" add (number + "1"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "1"),"0");
set("blix" add number,purple);
}
}
if(eval("blix" add (number + "2")) == slider)
{
if(eval("blix" add (number + "1")) == "0")
{
play();
tellTarget("slider/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),slider);
}
}
if(eval("blix" add (number + "2")) == bumper)
{
if(eval("blix" add (number + "1")) == "0")
{
play();
tellTarget("bumper/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("bump" add (number + "1"),eval("bump" add (number + "2")) - "1");
set("bump" add (number + "2"),"0");
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),bumper);
}
}
if(eval("blix" add (number + "2")) == green)
{
if(eval("blix" add (number + "1")) == "0")
{
play();
tellTarget("green/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),green);
}
}
if(eval("blix" add (number + "2")) == blue)
{
if(eval("blix" add (number + "1")) == "0")
{
play();
tellTarget("blue/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),blue);
}
}
if(eval("blix" add (number + "2")) == yellow)
{
if(eval("blix" add (number + "1")) == "0")
{
play();
tellTarget("yellow/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),yellow);
}
}
if(eval("blix" add (number + "2")) == red)
{
if(eval("blix" add (number + "1")) == "0")
{
play();
tellTarget("red/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),red);
}
}
if(eval("blix" add (number + "2")) == ghost)
{
if("5" >= eval("blix" add (number + "1")))
{
play();
tellTarget("ghost/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),ghost);
}
}
if(eval("blix" add (number + "2")) == purple)
{
if(eval("blix" add (number + "1")) == "0")
{
play();
tellTarget("purple/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),purple);
}
}
if(eval("blix" add (number + "2")) == wheel)
{
if(eval("blix" add (number + "1")) == "0")
{
spin = "1";
play();
tellTarget("wheel/TILE" add (number + "2") add "/wheel")
{
play();
}
tellTarget("wheel/TILE" add (number + "2"))
{
gotoAndStop("left");
play();
}
set("w" add (number + "1"),eval("w" add (number + "2")));
set("w" add (number + "2"),"0");
set("blix" add (number + "2"),"0");
set("blix" add (number + "1"),wheel);
if(eval("w" add (number + "1")) == "5")
{
set("w" add (number + "1"),"1");
}
else
{
set("w" add (number + "1"),eval("w" add (number + "1")) + "1");
}
}
}
}